import {INCREMENT,DECREMENT} from "../constant/constant"
import store from '../store'
export const IncrementAction = value => ({
    type: INCREMENT,
    data: value
})
export const decrementAction = value => ({
    type: DECREMENT,
    data: value
})
export const WaitCrementAction = value =>{
        return () => {
            setTimeout(()=>{
                store.dispatch({
                    type: INCREMENT,
                    data:value
                  })
            },2000)
        }
}